<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('创建工单')"/>
</head>
<body style="background-color: #F4F6FA">
<div class="main-content" style="margin: 0;padding: 0">
    <form id="form-user-add" class="form-horizontal" style="background-color: #F4F6FA">
        <!--工单主题,工单编号,工单性质...-->
        <div class="col-sm-12">
            <label class="col-sm-6 control-label">总共还有<span class="spRed"
                                                            id="remainCount">[[${num}]]</span>条数据未获取</label>
        </div>
        <div class="col-sm-12">
            <div class="form-group">
                <label class="col-sm-6 control-label" style="float: left;padding-top: 7px;"><span
                        class="spRed">随机</span>获取条数：</label>
                <div class="col-sm-6" style="float: left;">
                    <select id="num" style="width: 200px;"
                            class="form-control formSelect">
                        <option value="5">5</option>
                        <option value="10">10</option>
                        <option value="20">20</option>
                        <option value="50">50</option>
                    </select>
                </div>
            </div>
        </div>
    </form>
</div>

<th:block th:include="include :: footer"/>
<script>
    var prefix = ctx + "system/mTelRcd";

    function submitHandler() {
        var val = $('#num option:selected').val();
        var config = {
            url: prefix + '/getListWait',
            type: "post",
            dataType: "json",
            data: {num: val},
            success: function (result) {
                $.operate.successCallback(result);
            }
        };
        $.ajax(config);
    }

    function submitHandler2(parent) {
        var val = $('#num option:selected').val();
        var config = {
            url: prefix + '/getListWait',
            type: "post",
            dataType: "json",
            data: {num: val},
            success: function (result) {
                $.modal.close();
                parent.$.modal.msgSuccess(result.msg);
                parent.$.table.refresh();
            }
        };
        $.ajax(config);
    }
</script>
</body>
</html>

